#include "ODN_EntityEvents.h"

namespace ouden {

void CCreateModelEntityEvent::onActivate() 
{
	std::cout << "createmodel" << std::endl;
	CModelEntity* pEnt = static_cast<CModelEntity*>(CGameMgr::getInstance()->
	getGameWorld()->createEntity("ModelEntity"));
	std::cout << "createmodel2" << std::endl;
	pEnt->loadModel(m_sModel);
	std::cout << "createmodel3" << std::endl;
	pEnt->setPos(m_vPos);
	std::cout << "createmodel4" << std::endl;
}

} //namespace ouden
